#ifndef GLWIDGET_H
#define GLWIDGET_H

#include <QGLWidget>

#include "userobject.h"

class GLWidget : public QGLWidget
{
    
public:
    GLWidget(QWidget *parent = 0);
    ~GLWidget();


protected:
    GLubyte* genCheckImage(unsigned width, unsigned height, GLsizei checkSize);
    void createTexture2D();
    void initializeGL();
    void paintGL();
    void resizeGL(int width, int height);

private:
    UserObject _userObject;
};

#endif // GLWIDGET_H
